package com.linkhouse.common.em;

import java.io.Serializable;

public enum ResultEnum implements Serializable {

    ERROR(9999,"操作失败"),
    SUCCESS(10000,"操作成功"),

    NO_LOGIN(10001,"无效的ToKen"),
    UNKNOWNACCOUNT(10002,"账号不存在"),
    INCORRECT(10003,"密码错误"),
    ARGS_FAILE(10004,"参数不正确"),
    AYDIT_FAILED(10005,"审核未通过"),
    SALEOVER(10006,"商品已售罄"),
    REQUEST_FALBACK(10007,"被限流啦"),
    FEIGN_FALLBACK(1008,"OpenFeign调用失败");


    private Integer status;
    private String statusInfo;


    ResultEnum(Integer status, String statusInfo) {
        this.status = status;
        this.statusInfo = statusInfo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusInfo() {
        return statusInfo;
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }
}
